/**
 * 按钮样式
 */
$btn-radius: 12upx;

// 默认主题色按钮
.su-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-color: $maincolor;
	height: 80upx;
	color: --color(--p-btn-white);
	font-size: 30upx;
	border-radius: $btn-radius;
	background-image: linear-gradient(to right, $maincolor , $maincolor-active);
	
	&[disabled] {
		background-image:none;
		background-color: --color(--p-disabled-color) !important;
		color: var(--p-text-88) !important;
	}
	&[disabled]:active {
		background-image:none;
	}
	&:active {
		background-image: linear-gradient(to right, $maincolor-active, $maincolor);
	}
	&.pos-bottom {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
	}
	&:after {
		border: none;
	}
}

// 白色按钮
.su-button-white {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: --color(--p-white);
	width: 100%;
	height: 80upx;
	color: --color(--p-text-34);
	font-size: 30upx;
	border-radius: $btn-radius;
	box-shadow: 1upx 2upx 3upx --color(--p-bg-ee);
	&[disabled] {
		background-color: --color(--p-disabled-color) !important;
		color: var(--p-text-88) !important;
	}
	&:active {
		background-color: --color(--p-white-active);
	}
	
	&:after {
		border: none;
		content: '';
	}
	&:before {
		content: " ";
		width: 200%;
		height: 200%;
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		border: 1upx solid --color(--p-border-color);
		border-radius: 24upx;
		-webkit-transform: scale(.5);
		transform: scale(.5);
		-webkit-transform-origin: 0 0;
		transform-origin: 0 0;
		box-sizing: border-box;
		pointer-events: none
	}
}

// 红色按钮
.su-button-red {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-color: --color(--p-red);
	height: 80upx;
	color: --color(--p-btn-white);
	font-size: 30upx;
	border-radius: $btn-radius;
	background-image: linear-gradient(to right, --color(--p-red) , --color(--p-red-active));
	
	&[disabled] {
		background-image:none;
		background-color: --color(--p-disabled-color) !important;
		color: var(--p-text-88) !important;
	}
	&[disabled]:active {
		background-image:none;
	}
	&:active {
		background-image: linear-gradient(to right, --color(--p-red-active), --color(--p-red));
	}
	&.pos-bottom {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
	}
	&:after {
		border: none;
	}
}